# Copyright (C) 2009, 2011 Hans Pirnay. All Rights Reserved.
# This code is published under the Eclipse Public License.
#
# Author: Hans Pirnay, 2009-12-18


#############################################################################
# Do not modify anything below unless you know what you're doing.

sipopt_lib = sipopt_lib
ampl_sipopt_exe = ampl_sipopt_exe
ALL_TARGETS = $(sipopt_lib)
DIRS = ./src
TARGETDIRS = ./src

ALL_TARGETS += $(ampl_sipopt_exe)
DIRS += ./AmplSolver
TARGETDIRS += ./AmplSolver

all: $(ALL_TARGETS)

install: all
	for d in $(TARGETDIRS); do (cd $$d; $(MAKE) install ); done

uninstall:
	for d in $(TARGETDIRS); do (cd $$d; $(MAKE) uninstall ); done

clean:
	-for d in $(DIRS); do (cd $$d; $(MAKE) clean ); done

$(ampl_sipopt_exe): $(sipopt_lib)
	$(MAKE) -C AmplSolver

$(sipopt_lib):
	$(MAKE) -C src
